{
    //splice截取，会修改原数组，返回值为截取下来的部分
    let a = [1, 2, 3, 4, 5, 6];
    //运用截取像数组内添加数据
    console.log(a.splice(2, 0, "a", "b")); //[]
    console.log(a); //[1, 2,'a','b', 3, 4, 5, 6]]

}